Duplicate icon if dynamic. (Solves crash on Mapsource with KMA corruption.)
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 12 Mar 2004 17:42:30 +0000 (17:42 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 12 Mar 2004 17:42:30 +0000 (17:42 +0000)
gpsbabel/waypt.c

index 4f5e66bc83c49cdc58d4a88b4968d458fa9dc604..80ee78f819a9bb5bc42de0922481d24d886ef45e 100644 (file)
@@ -50,6 +50,8 @@ waypt_dupe(const waypoint *wpt)
                tmp->url = xstrdup(wpt->url);
        if (wpt->url_link_text)
                tmp->url_link_text = xstrdup(wpt->url_link_text);
+       if (wpt->icon_descr && wpt->icon_descr_is_dynamic)
+               tmp->icon_descr = xstrdup(wpt->icon_descr);
        /*
         * It's important that this duplicated waypoint not appear
         * on the master Q.